home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 2 / ETO Development Tools 2.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Oct 89 / Z0105-bByte not for Byte-Oct89 < prev    next >
Encoding:
Text File  |  1989-10-17  |  753 b   |  26 lines  |  [TEXT/GEOL]

  1. Item    7524295                         17-Oct-89        06:37
  2.  
  3. From:   NOR0042                         NOD Data Nostra
  4.  
  5. To:     MACAPP.TECH$                    MACAPP Tech
  6.  
  7. Sub:    bByte not for Byte
  8.  
  9. I was hunting a bug, following its trace: a Byte field in an object appeared to
  10. be 0 all the time in the Inspector.  But after a while the trace led me into
  11. MacApp itself where I discovered that bByte in the Fields method handles
  12. SignedByte instead.  Remember:
  13.  
  14.     SizeOf (SignedByte) = 1
  15.     SizeOf (Byte) = 2
  16.  
  17. So, use bByte for SignedByte and bInteger for Byte.  Maybe this is not enough
  18. to be called an error, but I consider it bad naming.
  19.  
  20. After my discovery the bug was easily found elsewhere.
  21.  
  22.     Sigmund Tveit
  23.     Data Nostra A/S
  24.  
  25.  
  26.